package com.fjrcloud.utils;

/**
 * Author: Trun
 * Date: 2016-12-12
 * Description: RandomUtils.java
 */

public class RandomUtils {

    // 获取4位随机验证码
    public static String getMsmCheckCode() {
        String num = "";
        for (int i = 0; i < 4; i++) {
            num = num + String.valueOf((int) Math.floor(Math.random() * 9 + 1));
        }
        return num;
    }


}
